export default [
  // 404notFound
  {
    path: '/404',
    name: '404NotFound',
    components: {
      default: () => import('@/views/404notFound.vue')
    }
  },
  // 无访问权限
  {
    path: '/noAccess',
    name: 'NoAccess',
    components: {
      default: () => import('@/views/NoAccess.vue')
    }
  },
  {
    path: '/',
    name: 'index',
    component: () => import('@/views/home/index'),
    meta: {
      title: '全友驾驶舱',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  },
  {
    path: '/order/office',
    name: 'saleOffice',
    component: () => import('@/views/order/office/index'),
    meta: {
      title: '办事处',
      greenHeader: true
    }
  },
  {
    path: '/order',
    name: 'orderIndex',
    component: () => import('@/views/order/index'),
    meta: {
      title: '销售开单',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  },
  {
    path: '/logistics',
    name: 'logisticsIndex',
    component: () => import('@/views/logistics/index'),
    meta: {
      title: '物流启运',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  },
  {
    path: '/logistics/office',
    name: 'logisticsOffice',
    component: () => import('@/views/logistics/office/index'),
    meta: {
      title: '办事处',
      greenHeader: true
    }
  },
  {
    path: '/produces',
    name: 'producesIndex',
    component: () => import('@/views/produces/index'),
    meta: {
      title: '生产报工',
      isHome: true,
      keepAlive: true,
      greenHeader: true
    }
  },
  {
    path: '/produces/customized',
    name: 'customizedDetail',
    component: () => import('@/views/produces/customized/index'),
    meta: {
      title: '定制分厂产量',
      keepAlive: true,
      greenHeader: true
    }
  },
  {
    path: '/delivery',
    name: 'Delivery',
    component: () => import('@/views/delivery/index'),
    meta: {
      title: '配送',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  },
  {
    path: '/software',
    name: 'Software',
    component: () => import('@/views/software/index'),
    meta: {
      title: '软体',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  },
  {
    path: '/quality',
    name: 'Quality',
    component: () => import('@/views/quality/index'),
    meta: {
      title: '品质',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  },
  {
    path: '/plankWood',
    name: 'PlankWood',
    component: () => import('@/views/plankWood/index'),
    meta: {
      title: '板木',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  },
  {
    path: '/storage',
    name: 'Storage',
    component: () => import('@/views/storage/index'),
    meta: {
      title: '仓储',
      isHome: true,
      keepAlive: false,
      greenHeader: true
    }
  }
]
